package edu.jxnu.zhangjinsong.unemploymenttracker.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("person")
public class Person {
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    @TableField(value = "student_id")
    private String studentId;

    @TableField
    private String name;

    @TableField
    private String gender;

    @TableField
    private String degree;

    @TableField
    private String major;

    @TableField
    private String school;

    @TableField("graduation_date")
    private LocalDateTime graduationDate;

    @TableField
    private String status;

    @TableField
    private String reason;

    @TableField("advisor_id")
    private String advisorId;
    
    @TableLogic
    @TableField("is_deleted")
    private Integer isDeleted;

    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

    public enum Gender {
        男, 女
    }

    public enum Degree {
        专科, 本科, 硕士, 博士
    }

    public enum EmploymentStatus {
        待匹配, 推进中, 已就业
    }
}